home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / Rings.swf / scripts / __Packages / RingIndicator.as < prev   
Text File  |  2011-01-13  |  9KB  |  266 lines

  1. var ┬º\x01┬º = 338;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 338)
  5.    {
  6.       set("\x01",eval("\x01") + 321);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 470)
  12.       {
  13.          set("\x01",eval("\x01") - 305);
  14.          break;
  15.       }
  16.       if(eval("\x01") == 810)
  17.       {
  18.          set("\x01",eval("\x01") - 340);
  19.          if(┬º┬ºpop())
  20.          {
  21.             set("\x01",eval("\x01") - 305);
  22.          }
  23.       }
  24.       else if(eval("\x01") == 191)
  25.       {
  26.          set("\x01",eval("\x01") + 709);
  27.          if(┬º┬ºpop())
  28.          {
  29.             set("\x01",eval("\x01") - 444);
  30.          }
  31.       }
  32.       else if(eval("\x01") == 839)
  33.       {
  34.          set("\x01",eval("\x01") - 419);
  35.          ┬º┬ºpush(true);
  36.       }
  37.       else
  38.       {
  39.          if(eval("\x01") == 619)
  40.          {
  41.             set("\x01",eval("\x01") + 220);
  42.             break;
  43.          }
  44.          if(eval("\x01") == 165)
  45.          {
  46.             set("\x01",eval("\x01") + 518);
  47.             ┬º┬ºpush(true);
  48.          }
  49.          else
  50.          {
  51.             if(eval("\x01") == 456)
  52.             {
  53.                set("\x01",eval("\x01") + 372);
  54.                if(!_global.RingIndicator)
  55.                {
  56.                   _global.RingIndicator extends MovieClip;
  57.                   var _loc2_ = _global.RingIndicator = function()
  58.                   {
  59.                      super();
  60.                      this.destRot = 0;
  61.                      this.rotSpeed = 0;
  62.                      this.rotAccel = 0;
  63.                      this.distToDest = 0;
  64.                      this.originRot = 0;
  65.                      this.dirn = 1;
  66.                      this.halfDist = 0;
  67.                      this.distRot = 0;
  68.                      this.topSpeed = 15;
  69.                      this.framesAccel = 0;
  70.                      this.framesDecel = 0;
  71.                   }.prototype;
  72.                   _loc2_.RotateAround = function()
  73.                   {
  74.                   };
  75.                   _loc2_.PointToCell = function(cellNum)
  76.                   {
  77.                      this.destRot = 60 * (cellNum - 1) - 30;
  78.                      if(this.destRot < 0)
  79.                      {
  80.                         this.destRot += 360;
  81.                      }
  82.                      this.originRot = this._rotation;
  83.                      if(this.originRot < 0)
  84.                      {
  85.                         this.originRot += 360;
  86.                      }
  87.                      var _loc2_ = Math.abs(this.destRot - this.originRot);
  88.                      if(_loc2_ > 180)
  89.                      {
  90.                         this.distToDest = 360 - _loc2_;
  91.                      }
  92.                      else
  93.                      {
  94.                         this.distToDest = _loc2_;
  95.                      }
  96.                      this.halfDist = this.distToDest / 2;
  97.                      this.rotAccel = this.distToDest / 300;
  98.                      this.rotSpeed = 1;
  99.                      this.distRot = 0;
  100.                      if(this.destRot > this.originRot)
  101.                      {
  102.                         if(_loc2_ > 180)
  103.                         {
  104.                            this.dirn = -1;
  105.                         }
  106.                         else
  107.                         {
  108.                            this.dirn = 1;
  109.                         }
  110.                      }
  111.                      else if(_loc2_ > 180)
  112.                      {
  113.                         this.dirn = 1;
  114.                      }
  115.                      else
  116.                      {
  117.                         this.dirn = -1;
  118.                      }
  119.                      this.distToTopSpeed = -99999;
  120.                      this.framesAccel = 0;
  121.                      this.framesDecel = 0;
  122.                      if(this.destRot > 180)
  123.                      {
  124.                         this.destRot -= 360;
  125.                      }
  126.                      if(this.originRot > 180)
  127.                      {
  128.                         this.originRot -= 360;
  129.                      }
  130.                   };
  131.                   _loc2_.Update = function()
  132.                   {
  133.                      if(this._rotation == this.destRot)
  134.                      {
  135.                         return undefined;
  136.                      }
  137.                      if(this.game.ringInterval < 3100)
  138.                      {
  139.                         this._rotation = this.destRot;
  140.                         return undefined;
  141.                      }
  142.                      if(this.distRot < this.halfDist and this.rotSpeed < this.topSpeed)
  143.                      {
  144.                         this.rotSpeed += this.rotAccel;
  145.                         this.framesAccel = this.framesAccel + 1;
  146.                      }
  147.                      var _loc2_ = this.distToDest - this.distToTopSpeed;
  148.                      if(this.distRot > this.halfDist or this.distRot > _loc2_)
  149.                      {
  150.                         if(this.rotSpeed > 0)
  151.                         {
  152.                            if(this.framesDecel < this.framesAccel)
  153.                            {
  154.                               this.rotSpeed -= this.rotAccel;
  155.                               this.framesDecel = this.framesDecel + 1;
  156.                            }
  157.                         }
  158.                      }
  159.                      if(this.rotSpeed > this.topSpeed)
  160.                      {
  161.                         this.rotSpeed = this.topSpeed;
  162.                         this.distToTopSpeed = this.distRot;
  163.                      }
  164.                      if(this.rotSpeed < 0)
  165.                      {
  166.                         this.rotSpeed = 0;
  167.                      }
  168.                      this._rotation += this.rotSpeed * this.dirn;
  169.                      this.distRot += Math.abs(this.rotSpeed);
  170.                      if(Math.abs(this._rotation - this.destRot) < this.rotSpeed * 2)
  171.                      {
  172.                         this._rotation = this.destRot;
  173.                      }
  174.                   };
  175.                   ┬º┬ºpush(ASSetPropFlags(_global.RingIndicator.prototype,null,1));
  176.                }
  177.                ┬º┬ºpop();
  178.                break;
  179.             }
  180.             if(eval("\x01") == 821)
  181.             {
  182.                set("\x01",eval("\x01") - 129);
  183.                ┬º┬ºpush(true);
  184.             }
  185.             else if(eval("\x01") == 692)
  186.             {
  187.                set("\x01",eval("\x01") - 44);
  188.                if(┬º┬ºpop())
  189.                {
  190.                   set("\x01",eval("\x01") - 16);
  191.                }
  192.             }
  193.             else if(eval("\x01") == 659)
  194.             {
  195.                set("\x01",eval("\x01") - 40);
  196.                if(┬º┬ºpop())
  197.                {
  198.                   set("\x01",eval("\x01") + 220);
  199.                }
  200.             }
  201.             else if(eval("\x01") == 420)
  202.             {
  203.                set("\x01",eval("\x01") + 443);
  204.                if(┬º┬ºpop())
  205.                {
  206.                   set("\x01",eval("\x01") - 42);
  207.                }
  208.             }
  209.             else
  210.             {
  211.                if(eval("\x01") == 900)
  212.                {
  213.                   set("\x01",eval("\x01") - 444);
  214.                   break;
  215.                }
  216.                if(eval("\x01") == 0)
  217.                {
  218.                   set("\x01",eval("\x01") + 55);
  219.                   break;
  220.                }
  221.                if(eval("\x01") == 648)
  222.                {
  223.                   set("\x01",eval("\x01") - 16);
  224.                   break;
  225.                }
  226.                if(eval("\x01") == 632)
  227.                {
  228.                   set("\x01",eval("\x01") + 178);
  229.                   ┬º┬ºpush(true);
  230.                }
  231.                else
  232.                {
  233.                   if(eval("\x01") == 863)
  234.                   {
  235.                      set("\x01",eval("\x01") - 42);
  236.                      break;
  237.                   }
  238.                   if(eval("\x01") == 683)
  239.                   {
  240.                      set("\x01",eval("\x01") - 683);
  241.                      if(┬º┬ºpop())
  242.                      {
  243.                         set("\x01",eval("\x01") + 55);
  244.                      }
  245.                   }
  246.                   else
  247.                   {
  248.                      if(eval("\x01") != 55)
  249.                      {
  250.                         if(eval("\x01") == 828)
  251.                         {
  252.                            set("\x01",eval("\x01") - 828);
  253.                            break;
  254.                         }
  255.                         break;
  256.                      }
  257.                      set("\x01",eval("\x01") + 136);
  258.                      ┬º┬ºpush(true);
  259.                   }
  260.                }
  261.             }
  262.          }
  263.       }
  264.    }
  265. }
  266.